package designpattern.adapter;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 刘牌
 * @Date: 2021/12/20/12:33
 * @Description:
 */
public class DeviceAdapter extends Device220V implements Device5V , Device10V{
    @Override
    public int outPut5V() {
        int inPut = super.outPut220V();
        return inPut / 44;
    }

    @Override
    public int outPut10V() {
        int inPut = super.outPut220V();
        return inPut / 22;
    }
}
